package com.yimi.yinhepda.views.stockCheck_module;

import com.pda.ym.callbacks.UICallBack;
import com.pda.ym.net.NetRequest;
import com.pda.ym.utils.Constants;
import com.yimi.yinhepda.entity.request.QueryStorageInfoRequest;
import com.yimi.yinhepda.entity.response.QueryStorageInfoResponse;

/**
 * @author: lj
 * Date: 2020/7/9 14:33
 * Description:查询库区信息
 */
public class StockCheckUtil {

    public static void queryStorageInfo(QueryStorageInfoRequest request, UICallBack callBack){
        new NetRequest().setMethod(NetRequest.Method.POST_STRING)
                .setResponsClazz(QueryStorageInfoResponse.class)
                .setUrl(Constants.URL_QUERY_STORAGE_INFO)
                .setRequestObject(request)
                .setConnTimeOut(5 * 1000)
                .execute(callBack);
    }
}
